package com.appwoo.txtws.adapter;

import android.content.Context;
import android.database.DataSetObserver;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.SpinnerAdapter;
import android.widget.TextView;
import java.util.List;

public class SpinnerAdapterImpl
  implements SpinnerAdapter
{
  List<Itemable> cardList;
  Context context;
  LayoutInflater inflater;

  public SpinnerAdapterImpl(Context paramContext, List<Itemable> paramList)
  {
    this.context = paramContext;
    this.cardList = paramList;
    this.inflater = LayoutInflater.from(paramContext);
  }

  public int getCount()
  {
    return this.cardList.size();
  }

  public View getDropDownView(int paramInt, View paramView, ViewGroup paramViewGroup)
  {
    if (paramView == null)
      paramView = this.inflater.inflate(2130903193, null);
    ImageView localImageView = (ImageView)paramView.findViewById(2131493504);
    TextView localTextView = (TextView)paramView.findViewById(2131493505);
    if (paramInt == 0)
    {
      localImageView.setImageResource(2130837894);
      localTextView.setText(this.context.getString(2131428229));
    }
    if (paramInt == 1)
    {
      localImageView.setImageResource(2130837890);
      localTextView.setText(this.context.getString(2131428230));
    }
    return paramView;
  }

  public Object getItem(int paramInt)
  {
    return this.cardList.get(paramInt);
  }

  public long getItemId(int paramInt)
  {
    return 0L;
  }

  public int getItemViewType(int paramInt)
  {
    return 0;
  }

  public View getView(int paramInt, View paramView, ViewGroup paramViewGroup)
  {
    if (paramView == null)
      paramView = this.inflater.inflate(2130903192, null);
    ImageView localImageView = (ImageView)paramView.findViewById(2131493504);
    TextView localTextView = (TextView)paramView.findViewById(2131493505);
    if (paramInt == 0)
    {
      localImageView.setImageResource(2130837894);
      localTextView.setText(this.context.getString(2131428229));
    }
    if (paramInt == 1)
    {
      localImageView.setImageResource(2130837890);
      localTextView.setText(this.context.getString(2131428230));
    }
    return paramView;
  }

  public int getViewTypeCount()
  {
    return 0;
  }

  public boolean hasStableIds()
  {
    return false;
  }

  public boolean isEmpty()
  {
    return false;
  }

  public void registerDataSetObserver(DataSetObserver paramDataSetObserver)
  {
  }

  public void unregisterDataSetObserver(DataSetObserver paramDataSetObserver)
  {
  }
}

/* Location:           C:\Documents and Settings\Administrator\classes_dex2jar.jar
 * Qualified Name:     com.appwoo.txtws.adapter.SpinnerAdapterImpl
 * JD-Core Version:    0.6.2
 */